package com.geek.alert.beans;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties(prefix = "application.alert.rule")
public class MatchedRule {
    private ApiRule[] apiRules;

    @Data
    public class ApiRule {
        private String api;
        private long maxTps;
        private long maxErrorCount;
    }
}
